package com.guochen.debt.mapper;

import com.guochen.debt.pojo.OperationLog;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author Guo Chen
 * @date 2022年05月18日 21:23
 */
public interface OperationLogMapper {
    List<OperationLog> getAllOperationLog();

    List<OperationLog> getOperationLogByOperationLogId(@Param("id") Integer id);

    Integer insertOperationLog(OperationLog operationLog);

    Integer deleteOperationLogById(@Param("id") Integer id);

    Integer updateOperationLog(OperationLog operationLog);

    List<OperationLog> getOperationLogByOperationName(@Param("operation") String operation);

    List<OperationLog> getOperationLogByUserName(@Param("userName") String userName);

    List<OperationLog> getOperationLogByOperationDate(@Param("operationDate") Timestamp operationDate);

    List<OperationLog> getOperationLogByIp(@Param("ip") String ip);

    List<OperationLog> getOperationLogByOperationType(@Param("type") String type);
}
